<?php global $base_url; ?>
<form action="<?php print $base_url . '/boxes/create';?>" method="POST">
    <div id="power_user_box_content">
        <div id="shipment_header">
            <p><label>Name:</label><input type="text" name="name"/></p>

            <p><label>Address:</label><select name="address_id">
                <option value="">--Choose--</option>
                <?php if ($data['addresses']->rowCount() > 0): ?>
                <?php $count = 1; ?>
                <?php foreach ($data['addresses'] as $address): ?>
                    <option value="<?php print $address->aid;?>"><?php print 'Address ' . $count;?></option>
                    <?php $count++; ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </select></p>
            <p><label>Method:</label><select name="shipment_method">
                <option value="">--Choose--</option>
            </select></p>
            <?php $services = variable_get('wh_optional_services_fees', array());?>
            <?php foreach ($services as $k => $service): ?>
            <p class="op-services">
                <input type="checkbox" id="<?php print str_replace(' ', '_', strtolower($service->service));?>"
                       value="1"
                       name="optional_service[<?php print $k;?>]" <?php print !empty($_POST['optional_service'][$k])
                        ? 'checked="checked"' : '';?>/>
                <label for="<?php print str_replace(' ', '_', strtolower($service->service));?>">
                    <?php print $service->service . ' - ' . $service->fee;?>
                </label>
            </p>
            <?php endforeach;?>
            <div id="tally_weight">
                <p>
                    <label>Weight:</label><input type="text" name="weight" disabled="disabled" value="0"/>
                    <label>lbs</label>
                </p>
            </div>
        </div>
        <div id="price_tally">
            <h4>Fee</h4>

            <p><span class="line_title">Storage fee:</span><span class="line_value">$ 15,00</span></p>

            <p><span class="line_title">Test fee:</span><span class="line_value">$ 13,00</span></p>
        </div>
        <div id="conso_form_buttons">
            <input type="submit" name="op" value="Save" class="ui-button"/>
            <input type="submit" name="op" value="Save & Send" class="ui-button"/>
            <input type="submit" name="op" value="Close" class="ui-button"/>
        </div>
    </div>
    <div id="packages_column_" class="column-right">
        <div id="packages" class="atk-grid ui-widget">
            <!--            --><?php //print $data['table'];?>
        </div>
    </div>
</form>